package com.example.flutter_tap.utils

import android.content.Context
import cc.shinichi.library.ImagePreview

/**
 * CommonUtils
 * <p>
 * 作者：wsm
 * 创建时间：2023/11/4
 */
object CommonUtils {

    /**
     * 查看大图
     */
    fun scanBigSingleImg(activity:Context,img:String){
        ImagePreview.instance
            .setContext(activity)
            .setIndex(0)
            .setImage(img)
            .start()
    }

    /**
     * 查看大图(多张)
     */
    fun scanBigMoreImg(activity:Context,imgList:MutableList<String>){
        ImagePreview.instance
            .setContext(activity)
            .setIndex(0)
            .setImageList(imgList)
            .start()
    }

}